package com.example.chinese;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class Star_7 extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity7);
        Button bt15=(Button)findViewById(R.id.bt15);
        Button bt16=(Button)findViewById(R.id.bt16);
        bt15.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                SharedPreferences sp=getSharedPreferences("data",MODE_PRIVATE);
                SharedPreferences.Editor editor=sp.edit();
                editor.putString("name8","表明恐惧排名太高：让支持你的人害怕伤害到你不再投票而止步于此");
                editor.commit();
                Intent intent15=new Intent(Star_7.this,Star_18.class);
                startActivity(intent15);
            }
        });

        bt16.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                SharedPreferences sp=getSharedPreferences("data",MODE_PRIVATE);
                SharedPreferences.Editor editor=sp.edit();
                editor.putString("name8","表明无畏排名高低,虽无畏但质疑越大 ，压力越大你");
                editor.commit();
                Intent intent16=new Intent();
                intent16.setClass(Star_7.this,Star_8.class);
                startActivity(intent16);
            }
        });
    }
}
